
<div class="cart_list_t">产品清单</div>
{if $arrayCarInfos==false || $arrayCarInfos == ''} <br />
您的购物车中暂无商品信息，请<strong><a href="index.php" class="a1">选择</a>！</strong> <br />
{else}
<table class="cart_table">
  <thead>
    <tr>
      <!-- <td>选择</td> -->
      <td>产品名称</td>
      <td>版本</td>
      <td>授权方式</td>
      <td>订购价(&yen;)</td>
      <td>订数量</td>
      <td>订金额(&yen;)</td>
	  <td>操作</td>
    </tr>
  </thead>
  <tbody>
  
  {section name=cbID loop=$arrayCarInfos}
  <tr>
    <!-- <td><input type="checkbox"></td> -->
    <td class="cart_name"><a href="details.php?pid={$arrayCarInfos[cbID].id}" target="_blank">{$arrayCarInfos[cbID].name}</a></td>
    <td>{$arrayCarInfos[cbID].version}</td>
    <td>{$arrayCarInfos[cbID].license}</td>
    <td>{$arrayCarInfos[cbID].price}</td>
    <td><input type="text" class="cart_num" id="num_{$arrayCarInfos[cbID].id}" value="{$arrayCarInfos[cbID].num}" onblur="javascript:goupdate({$arrayCarInfos[cbID].id});" ></td>
    <td>{$arrayCarInfos[cbID].smallTotalPrice}</td>
    <td><a href="javascript:if(window.confirm('确定从购物车中移除该商品？')==true){ldelim}window.location.href='cart.php?rpid={$arrayCarInfos[cbID].id}&t=remove';{rdelim}" class="a1">移除</a></td>
  </tr>
  {/section}
    </tbody>
  
</table>
{/if}
<p class="cart_tip"><a class="cart_del" href="javascript:if(window.confirm('确定清空购物车？')==true){ldelim}window.location.href='cart.php?t=clearAll';{rdelim}">清空购物车</a><span>运费：<i>免费送货 运费 0 元</i></span></p>
<p class="cart_count">总计：<i>&yen;{$totalPrice}</i></p>
<div class="cart_ctrl">如有问题，欢迎随时致电：020-87509004<a href="index.php" class="btn_continue">继续购物</a><a href="{if $arrayCarInfos==false || $arrayCarInfos == ''}javascript:alert('请选择商品，然后提交订单！');{else}confirm.php{/if}" class="btn_xiadan">在线下单</a></div>

<script type="text/javascript">
	function goupdate(id)
	{
		var numedit = $("#num_"+id).val();
		window.location.href="cart.php?upid="+id+"&num="+numedit+"&t=update";
	}
</script>
